package org.opens.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述
 *
 * @author: zhangyuming
 * @date: 2023/7/5 13:20
 */
@RestController
@RequestMapping(value = "/config")
public class GetValueController {

    @Value("${value:111}")
    private String value;

    @Value("${name}")
    private String name;

    @RequestMapping(value = "/getValue")
    public String getValue() {
        return value;
    }

    @RequestMapping(value = "/getName")
    public String getName() {
        return name;
    }

}
